/**
 * FileFind - ftp/shares indexing and search php engine
 * Module: agent-java
 * Description: Agent written in java language
 * Copyright (c) 2003-2010 Rage Steel, www.gt2.ru
 * ----------------------------------------------
 * $Id$
 */
package ru.ffind.agent.io;

import java.io.File;

import ru.ffind.common.model.Filename;

/**
 *
 * Filename implementation for the file
 *
 * @author Rage Steel
 * @version $Id$
 *
 */
public class FileFilename extends AbstractFileEntry implements Filename {

	private final long fileSize;
	
	/* (non-Javadoc)
	 * @see ru.ffind.agent.io.Filename#getFileSize()
	 */
	@Override
	public long getFileSize() {
		return fileSize;
	}
	
	protected FileFilename(File file) {
		super(file);
		
		this.fileSize = file.length();
	}

	static FileFilename create(File file) {
		return new FileFilename(file);
	}
	
	/*
	@Override
	public boolean equals(Object obj) {
		return AbstractEntry.fileEquals(this, obj);
	}
	*/

}
